import type { App } from "vue";
import { createPinia } from "pinia";

const store = createPinia();

/**
 * 全局注册 store
 * @param app
 */
export function setupStore(app: App<Element>) {
	app.use(store);
}

export { store };
